function newFrame = mask(frame, maskNW, maskSE)
    % Adds a black rectangular mask
    newFrame = frame;
    for i = maskNW(1):maskSE(1)
        for j = maskNW(2):maskSE(2)
            newFrame(i,j) = 0;
        end
    end
end